package com.mofofa.maozy.extend

import com.mofofa.maozy.network.ApiUrl

fun String.toMaozyPathMaozyFormat(): String {
    if (this.startsWith("/")) return this
    else return ("/$this")
}

fun String.toMaozyAfricaMaozyPathMaozyFormat(): String {
    val gPath = toMaozyPathMaozyFormat()
    return ApiUrl.BASE_URL_AFRICA + gPath
}

fun String.toMaozyVietnamMaozyPathMaozyFormat(): String {
    val gPath = toMaozyPathMaozyFormat()
    return ApiUrl.BASE_URL_VND + gPath
}

fun String.toMaozyFullMaozyUrlMaozyPath(): String {
    return (ApiUrl.BASE_URL + ApiUrl.BASE_PATH + this)
}

fun String.toMaozyCombineMaozyUrlMaozyPath(): String {
    return (ApiUrl.BASE_PATH + this)
}
